package lab02.test19;

public class Test {
    public static void main(String[] args) {
        String result="HelloWord";
        StringBuffer sb=new StringBuffer("HelloWord");
        System.out.print(sb.reverse());
        char tmp;
        int i;
        for (i=0;i<=result.length()-1;i++){
            tmp=result.charAt(i);
            if (tmp>='A'&&tmp<='Z'){
                System.out.print((char)(tmp+32));
            }
            else {
                System.out.print((char)(tmp-32));
            }
        }

    }
}
